<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <!-- 单位名称 -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('单位名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name}">
        </div>
    </div>
    <!-- 权重 -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('权重')}:</label>
        <div class="col-xs-12 col-sm-5">
            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number"
             placeholder="数值越高，权重越大" value="{$row.weigh}">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8" style="text-align: center;">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>